body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-image: url('../img/register.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

h1 {
    color: #5b250e;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 35rem;
}

label {
    margin-bottom: 0.5rem;
    color: #34495e;
    font-size: 1.1rem;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

button {
    width: 100%;
    padding: 0.75rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #FFA500;
    transform: scale(1.05);
}

.error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.3rem;
    display: none;
}

.message {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: #34495e;
}

.message {
    text-align: center;
    margin-top: 20px;
    font-size: 18px; /* 增大消息字体大小 */
    font-family: 'Georgia', serif; 
    color: #555; /* 调整字体颜色 */
    line-height: 1.6; /* 调整行高 */
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.8); /* 添加半透明背景 */
    border-radius: 4px; /* 圆角边框 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影 */
    transition: opacity 0.3s ease; /* 添加淡入淡出效果 */
}

.message:hover {
    opacity: 0.9; /* 鼠标悬停时透明度变化 */
}
/* 媒体查询 */
@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }

    .form-group {
        width: 90%;
    }

    label {
        font-size: 1rem;
    }

    input {
        font-size: 0.9rem;
    }

    button {
        font-size: 1rem;
    }

    .login-button {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}
